package com.smart.test;

/**
 * <p><b>Description:</b>  TODO
 * <p><b>Company:</b>
 *
 * @author created by Jesse Xu at 9:50 on 2019/10/8
 * @version V0.1
 * @classNmae SquenceA
 */
public class SequenceA implements Sequence {
    private static int number;

    public int getNumber(int num) {
        return ++number;
    }

    public static void main(String[] args) {
        Sequence sequence = new SequenceA();
        ClientThread client1 = new ClientThread(sequence);
        ClientThread client2 = new ClientThread(sequence);
        ClientThread client3 = new ClientThread(sequence);
        client1.start();
        client2.start();
        client3.start();
    }
}
